<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<html>
    <head>
        <style>
            .error {
                color: #ff0000;
            }

            .errorblock {
                color: #000;
                background-color: #ffEEEE;
                border: 3px solid #ff0000;
                padding: 8px;
                margin: 16px;
            }
        </style>
    </head>

    <body>
        <h2>Search Books</h2>

        <form:form method="POST" commandName="searchForm">
            <form:errors path="*" cssClass="errorblock" element="div" />

            <table width="95%" bgcolor="f8f8ff" border="0" cellspacing="0" cellpadding="5">
                <tr>
                    <td align="right" width="20%">Key :</td>
                    <td width="40%">
                        <form:input path="key"/>
                    </td>
                    <td width="60%">
                        <form:errors path="key" cssClass="error"/>
                    </td>
                </tr>
            </table>

            <br width="40%">
            <form:radiobutton path="option" value="0" />Publisher
            <form:radiobutton path="option" value="1" />Author
            <form:radiobutton path="option" value="2" />Title
            </br>

            <br>
            <input type="submit" value="Search"/>
            </br>
<!--            <br>
            <a href="<c:url value="home.htm"/>Back</a>
            </br>-->
        </form:form>

    </body>
</html>